<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GeorgeLib: GeorgeLib::Timer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GeorgeLib
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GeorgeLib</b></li><li class="navelem"><a class="el" href="class_george_lib_1_1_timer.html">Timer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_george_lib_1_1_timer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GeorgeLib::Timer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Retrieves the system's time, provides a counter and a time delay check.  
 <a href="class_george_lib_1_1_timer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_timer_8h_source.html">Timer.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for GeorgeLib::Timer:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_george_lib_1_1_timer.png" usemap="#GeorgeLib::Timer_map" alt=""/>
  <map id="GeorgeLib::Timer_map" name="GeorgeLib::Timer_map">
<area href="class_george_lib_1_1_singleton.html" alt="GeorgeLib::Singleton&lt; Timer &gt;" shape="rect" coords="0,0,184,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7da86ee91252a86fd187125853bddfa2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7da86ee91252a86fd187125853bddfa2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a7da86ee91252a86fd187125853bddfa2">Timer</a> (void)</td></tr>
<tr class="memdesc:a7da86ee91252a86fd187125853bddfa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br/></td></tr>
<tr class="separator:a7da86ee91252a86fd187125853bddfa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a193b795fb8398cbadc2321751f59e60e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a193b795fb8398cbadc2321751f59e60e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a193b795fb8398cbadc2321751f59e60e">~Timer</a> (void)</td></tr>
<tr class="memdesc:a193b795fb8398cbadc2321751f59e60e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr class="separator:a193b795fb8398cbadc2321751f59e60e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49c5f46f1bd06846658fc4f07f947640"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a49c5f46f1bd06846658fc4f07f947640">GetTime</a> (void)</td></tr>
<tr class="memdesc:a49c5f46f1bd06846658fc4f07f947640"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the system time.  <a href="#a49c5f46f1bd06846658fc4f07f947640">More...</a><br/></td></tr>
<tr class="separator:a49c5f46f1bd06846658fc4f07f947640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e47119ca1efcabb4a61f7a881a7513c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a2e47119ca1efcabb4a61f7a881a7513c">StartCounter</a> (int &amp;prevTime)</td></tr>
<tr class="memdesc:a2e47119ca1efcabb4a61f7a881a7513c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts a counter.  <a href="#a2e47119ca1efcabb4a61f7a881a7513c">More...</a><br/></td></tr>
<tr class="separator:a2e47119ca1efcabb4a61f7a881a7513c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6316e41aac1691038de2ae520db643d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#af6316e41aac1691038de2ae520db643d">GetCounter</a> (int prevTime)</td></tr>
<tr class="memdesc:af6316e41aac1691038de2ae520db643d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a counter.  <a href="#af6316e41aac1691038de2ae520db643d">More...</a><br/></td></tr>
<tr class="separator:af6316e41aac1691038de2ae520db643d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4b6fcd4ea8965d78885adfb7cd98c89"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#ac4b6fcd4ea8965d78885adfb7cd98c89">GetDelay</a> (const int delay, int &amp;prevTime)</td></tr>
<tr class="memdesc:ac4b6fcd4ea8965d78885adfb7cd98c89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a specified time has passed.  <a href="#ac4b6fcd4ea8965d78885adfb7cd98c89">More...</a><br/></td></tr>
<tr class="separator:ac4b6fcd4ea8965d78885adfb7cd98c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a934c235508e9d02c308c566e65eb54c9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a934c235508e9d02c308c566e65eb54c9">GetTimePrecise</a> (void)</td></tr>
<tr class="memdesc:a934c235508e9d02c308c566e65eb54c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retreive the high precision system time.  <a href="#a934c235508e9d02c308c566e65eb54c9">More...</a><br/></td></tr>
<tr class="separator:a934c235508e9d02c308c566e65eb54c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae810ce7ded71e32430f2dee7b41470dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#ae810ce7ded71e32430f2dee7b41470dc">StartCounterPrecise</a> (double &amp;prevTime)</td></tr>
<tr class="memdesc:ae810ce7ded71e32430f2dee7b41470dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start a high precision counter.  <a href="#ae810ce7ded71e32430f2dee7b41470dc">More...</a><br/></td></tr>
<tr class="separator:ae810ce7ded71e32430f2dee7b41470dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a961592d17ace78c2f80b079456adf65e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#a961592d17ace78c2f80b079456adf65e">GetCounterPrecise</a> (double prevTime)</td></tr>
<tr class="memdesc:a961592d17ace78c2f80b079456adf65e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a high precision counter.  <a href="#a961592d17ace78c2f80b079456adf65e">More...</a><br/></td></tr>
<tr class="separator:a961592d17ace78c2f80b079456adf65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc18bfcca668caa6f3a09e9e8c13ca6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_george_lib_1_1_timer.html#abbc18bfcca668caa6f3a09e9e8c13ca6">GetDelayPrecise</a> (const double delay, double &amp;prevTime)</td></tr>
<tr class="memdesc:abbc18bfcca668caa6f3a09e9e8c13ca6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks with high precision if a specified time has passed.  <a href="#abbc18bfcca668caa6f3a09e9e8c13ca6">More...</a><br/></td></tr>
<tr class="separator:abbc18bfcca668caa6f3a09e9e8c13ca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_george_lib_1_1_singleton"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_george_lib_1_1_singleton')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_george_lib_1_1_singleton.html">GeorgeLib::Singleton&lt; Timer &gt;</a></td></tr>
<tr class="memitem:a06a012bc4e84371d61f189668c8b8502 inherit pub_static_methods_class_george_lib_1_1_singleton"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06a012bc4e84371d61f189668c8b8502"></a>
static <a class="el" href="class_george_lib_1_1_timer.html">Timer</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getInstance</b> (void)</td></tr>
<tr class="separator:a06a012bc4e84371d61f189668c8b8502 inherit pub_static_methods_class_george_lib_1_1_singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Retrieves the system's time, provides a counter and a time delay check. </p>
<p>Provides functions to get the time, count the time, and check if an amount of time has been passed. Every function has two types, one that is precise <br/>
<br/>
How to use : </p>
<div class="fragment"><div class="line"><a class="code" href="class_george_lib_1_1_timer.html#a7da86ee91252a86fd187125853bddfa2">Timer</a> *timer = Timer::getInstance();</div>
<div class="line"></div>
<div class="line">cout &lt;&lt; timer-&gt;GetTime() &lt;&lt; endl;                   <span class="comment">// get system time</span></div>
<div class="line"></div>
<div class="line"><span class="keywordtype">int</span> iCounter, iTimer;                               <span class="comment">// variables for counter and delay</span></div>
<div class="line">timer-&gt;StartCounter(iCounter);                      <span class="comment">// start counter</span></div>
<div class="line"></div>
<div class="line"><span class="comment">// activity to be timed...</span></div>
<div class="line"></div>
<div class="line">cout &lt;&lt; timer-&gt;GetCounter(iCounter) &lt;&lt; endl;        <span class="comment">// end counter</span></div>
<div class="line"></div>
<div class="line">cout &lt;&lt; <span class="stringliteral">&quot;Waiting 2 seconds...\t&quot;</span>;</div>
<div class="line"><span class="keywordflow">while</span>(1)                                            <span class="comment">// loop to get a delay</span></div>
<div class="line">{</div>
<div class="line"><span class="keywordflow">if</span>( timer-&gt;getDelay(2000, iTimer) )             <span class="comment">// check for delay</span></div>
<div class="line">{</div>
<div class="line">cout &lt;&lt; <span class="stringliteral">&quot;Done!&quot;</span> &lt;&lt; endl;</div>
<div class="line"><span class="keywordflow">break</span>;</div>
<div class="line">}</div>
<div class="line">}</div>
<div class="line"></div>
<div class="line">cout &lt;&lt; timer-&gt;GetTimePrecise() &lt;&lt; endl;            <span class="comment">// get system time</span></div>
<div class="line"></div>
<div class="line"><span class="keywordtype">double</span> dCounter, dTimer;                            <span class="comment">// variables for precise counter and delay</span></div>
<div class="line">timer-&gt;StartCounterPrecise(dCountertime);</div>
<div class="line"></div>
<div class="line"><span class="comment">// activity to be timed...</span></div>
<div class="line"></div>
<div class="line">cout &lt;&lt; timer-&gt;GetCounterPrecise(dCounter) &lt;&lt; endl; <span class="comment">// end counter</span></div>
<div class="line"></div>
<div class="line">cout &lt;&lt; <span class="stringliteral">&quot;Waiting 2 seconds...\t&quot;</span>;</div>
<div class="line"><span class="keywordflow">while</span>(1)                                            <span class="comment">// loop to get a delay</span></div>
<div class="line">{</div>
<div class="line"><span class="keywordflow">if</span>( timer-&gt;getDelayPrecise(2000000, dTimer) )   <span class="comment">// check for delay</span></div>
<div class="line">{</div>
<div class="line">cout &lt;&lt; <span class="stringliteral">&quot;Done!&quot;</span> &lt;&lt; endl;</div>
<div class="line"><span class="keywordflow">break</span>;</div>
<div class="line">}</div>
<div class="line">}</div>
</div><!-- fragment --> </div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af6316e41aac1691038de2ae520db643d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GeorgeLib::Timer::GetCounter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>prevTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops a counter. </p>
<dl class="section warning"><dt>Warning</dt><dd>Call <a class="el" href="class_george_lib_1_1_timer.html#a2e47119ca1efcabb4a61f7a881a7513c" title="Starts a counter. ">Timer::StartCounter()</a> first! </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">prevTime</td><td>the external variable that is passed in from the last call to <a class="el" href="class_george_lib_1_1_timer.html#a2e47119ca1efcabb4a61f7a881a7513c" title="Starts a counter. ">Timer::StartCounter()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the amount of time <b>in milliseconds</b> that has passed since the last call to <a class="el" href="class_george_lib_1_1_timer.html#a2e47119ca1efcabb4a61f7a881a7513c" title="Starts a counter. ">Timer::StartCounter()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a961592d17ace78c2f80b079456adf65e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double GeorgeLib::Timer::GetCounterPrecise </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>prevTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops a high precision counter. </p>
<dl class="section warning"><dt>Warning</dt><dd>Call <a class="el" href="class_george_lib_1_1_timer.html#ae810ce7ded71e32430f2dee7b41470dc" title="Start a high precision counter. ">Timer::StartCounterPrecise()</a> first! </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">prevTime</td><td>the external variable that is passed in from the last call to <a class="el" href="class_george_lib_1_1_timer.html#ae810ce7ded71e32430f2dee7b41470dc" title="Start a high precision counter. ">Timer::StartCounterPrecise()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the amount of time <b>in microseconds</b> that has passed since the last call to <a class="el" href="class_george_lib_1_1_timer.html#ae810ce7ded71e32430f2dee7b41470dc" title="Start a high precision counter. ">Timer::StartCounterPrecise()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac4b6fcd4ea8965d78885adfb7cd98c89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GeorgeLib::Timer::GetDelay </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>delay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>prevTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if a specified time has passed. </p>
<dl class="section warning"><dt>Warning</dt><dd>This function only works in a loop! </dd>
<dd>
<code>prevTime</code> must be zero before calling this function </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">delay</td><td>the specified amount of time to check for, <b>in milliseconds</b> </td></tr>
    <tr><td class="paramname">prevTime</td><td>an external variable to keep track of the time passed. must be zero before the first call to this function </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the specified time has elapsed, else false </dd></dl>

</div>
</div>
<a class="anchor" id="abbc18bfcca668caa6f3a09e9e8c13ca6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GeorgeLib::Timer::GetDelayPrecise </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>delay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>prevTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks with high precision if a specified time has passed. </p>
<dl class="section warning"><dt>Warning</dt><dd>This function only works in a loop! </dd>
<dd>
<code>prevTime</code> must be zero before calling this function </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">delay</td><td>the specified amount of time to check for <b>in microseconds</b> </td></tr>
    <tr><td class="paramname">prevTime</td><td>an external variable to keep track of the time passed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the specified time has elapsed, else false </dd></dl>

</div>
</div>
<a class="anchor" id="a49c5f46f1bd06846658fc4f07f947640"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GeorgeLib::Timer::GetTime </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve the system time. </p>
<dl class="section note"><dt>Note</dt><dd>This function has precision of at least 5 milliseconds </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>the system time <b>in milliseconds</b> </dd></dl>

</div>
</div>
<a class="anchor" id="a934c235508e9d02c308c566e65eb54c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double GeorgeLib::Timer::GetTimePrecise </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retreive the high precision system time. </p>
<dl class="section note"><dt>Note</dt><dd>This function has a precision of at least 1 microseconds </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>the system time <b>in microseconds</b> </dd></dl>

</div>
</div>
<a class="anchor" id="a2e47119ca1efcabb4a61f7a881a7513c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeorgeLib::Timer::StartCounter </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>prevTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts a counter. </p>
<dl class="section note"><dt>Note</dt><dd>Call <a class="el" href="class_george_lib_1_1_timer.html#af6316e41aac1691038de2ae520db643d" title="Stops a counter. ">Timer::GetCounter()</a> to stop the counter </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">prevTime</td><td>the external variable to keep check of the time passed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae810ce7ded71e32430f2dee7b41470dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeorgeLib::Timer::StartCounterPrecise </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>prevTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start a high precision counter. </p>
<dl class="section note"><dt>Note</dt><dd>Call <a class="el" href="class_george_lib_1_1_timer.html#a961592d17ace78c2f80b079456adf65e" title="Stops a high precision counter. ">Timer::GetCounterPrecise()</a> to stop the counter </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">prevTime</td><td>the external variable to keep check of the time passed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/morbidintel/Desktop/GeorgeLib/GeorgeLib/include/<a class="el" href="_timer_8h_source.html">Timer.h</a></li>
<li>C:/Users/morbidintel/Desktop/GeorgeLib/GeorgeLib/src/Timer.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 21 2015 13:43:18 for GeorgeLib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
